// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'

//导入路由
import router from './router'

//导入elmrnt-plus
import ElementPlus from 'element-plus'
// 导入elment-plus icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 导入 elment-plus样式
import 'element-plus/dist/index.css'
//element-plus的国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'


// 创建实例
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}



app.use(createPinia())

//挂载路由
app.use(router)

app.use(ElementPlus,{
  locale: zhCn,
})

app.mount('#app')
